F. M3ToolEval Prompt
code:プロンプトテンプレート
You have access to the following tools:
{{Tool Definition}}
{{Formatting Instruction}}
Now, let’s get started!
Instruction: {{Example: Find the current price of Legendary Wand.}}
Answer in the format of ’xx.xx’ (e.g., 12.34).
You can optionally express your thoughts using natural language before your action. For
example, ’Thought: I want to use tool_name to do something. Action: <your action to
call tool_name> End Action’.
Note that your output should always contain either ’Action:’ or ’Answer:’, but not both.
When you are done, output the result using ’Answer: your answer’
Please ONLY output the answer (e.g., single number), without any other text.
code:Tool Definition - Webブラウジングの例
the webpage.
Arguments: url (str).
Returns the rendered content of the webpage after clicking the URL showing on the current
rendered page.
Signature: click_url(url: str) -> str
2 go_to_previous_page: Goes back to the previous page. It has no arguments. After going back to the previous page, return the rendered content of the webpage.
Signature: go_to_previous_page() -> str
3 scroll_down: Scrolls down the view. It has no arguments. Returns the rendered content of the webpage after scrolling down.
Signature: scroll_down() -> str
4 scroll_up: Scrolls up the view. It has no arguments. Returns the rendered content of the webpage after scrolling up.
Signature: scroll_up() -> str
5 view: Return the current view in string format of the rendered webpage. It has no arguments.
Returns the rendered content of the webpage.
You should call this when you want to see the rendered content of the current webpage.
Signature: view() -> str
6 calculator: Evaluates the given expression and returns the result. Accepts a calculation expression as input. For example, "2 + (3 * 4)" will return 14.
Signature: calculator(expression: str) -> float
code:Formatting Instruction - CodeAct
You can use the tools by outputing a block of Python code that invoke the tools.
You may use for-loops, if-statements, and other Python constructs when necessary.
Be sure to print the final answer at the end of your code.
You should begin your tool invocation with ’Action:’ and end it with ’End Action’.
Example: ’Action:
tool_name(argument_1)
End Action’